#ifndef INPUT_H
#define INPUT_H


// Class to poll the state of the keyboard.
class Input
{
public:
	static Input* getInstance();
	static void destroyInstance();

	// poll letters and numbers keys ect.
	bool keyPressed(char key) const;
	// poll arrows keys and things like that.
	bool specialKeyPressed(char specialKey) const;

	void handleKeyPress(char key);
	void handleSpecialKeyPress(char key);

	void reset();

private:
	static Input* input;
	Input();

	bool keysPressed[256];
	bool specialKeysPressed[256];
};

#endif